import Foundation

class RCgDPkOraZbmSOyl: AlyetbxslbblBtDL {
    static let WwJoBsxnOnzHObMj = RCgDPkOraZbmSOyl()
    private override init() {}
    
    override func iGJyeZZeSfRbESwq(tErCIvYmyunOPvLc: String, lnPbkmdwNECDwBnh: @escaping (Bool) throws -> Void) {
        if !fZwNztHkPUvazdeo.kKZHQgqVvWvEzcze.CJpHDPXJovTfKuUn() {
            NbDnvbpESqnqDInl.zYOvKsmnWpOUpLXr.CzkztFjgxzeSorYu {
                try? lnPbkmdwNECDwBnh(false)
            }
            return
        }
        NbDnvbpESqnqDInl.ZSgCfzHnxpKhZfxO.etDatGyKwukGrbHv(kEZOdhLcNmJFYywX: "joinRoom", EeqbYNIBaZfkqYaF: [
            "roomID" : tErCIvYmyunOPvLc,
        ]) { mKUIzAxlvBGUVfVk, EyTIVrNCTVqmYwPu, VnJfdRrzZmdnJmsc, EmqetgaKELbCTYMP in
            if !mKUIzAxlvBGUVfVk {
                NbDnvbpESqnqDInl.zYOvKsmnWpOUpLXr.CzkztFjgxzeSorYu {
                    try? lnPbkmdwNECDwBnh(false)
                }
                return
            }
            NbDnvbpESqnqDInl.zYOvKsmnWpOUpLXr.CzkztFjgxzeSorYu {
                try? lnPbkmdwNECDwBnh(true)
            }
        }
    }
    
    override func mcUshpdgSZWvkAAJ(tErCIvYmyunOPvLc: String, lnPbkmdwNECDwBnh: @escaping (Bool) throws -> Void) {
        if !fZwNztHkPUvazdeo.kKZHQgqVvWvEzcze.CJpHDPXJovTfKuUn() {
            NbDnvbpESqnqDInl.zYOvKsmnWpOUpLXr.CzkztFjgxzeSorYu {
                try? lnPbkmdwNECDwBnh(false)
            }
            return
        }
        NbDnvbpESqnqDInl.ZSgCfzHnxpKhZfxO.etDatGyKwukGrbHv(kEZOdhLcNmJFYywX: "leaveRoom", EeqbYNIBaZfkqYaF: [
            "roomID" : tErCIvYmyunOPvLc,
        ]) { mKUIzAxlvBGUVfVk, EyTIVrNCTVqmYwPu, VnJfdRrzZmdnJmsc, EmqetgaKELbCTYMP in
            if !mKUIzAxlvBGUVfVk {
                NbDnvbpESqnqDInl.zYOvKsmnWpOUpLXr.CzkztFjgxzeSorYu {
                    try? lnPbkmdwNECDwBnh(false)
                }
                return
            }
            NbDnvbpESqnqDInl.zYOvKsmnWpOUpLXr.CzkztFjgxzeSorYu {
                try? lnPbkmdwNECDwBnh(true)
            }
        }
    }
    
    override func CrMEZAmuFlNMKEGO(
        tErCIvYmyunOPvLc: String,
        lnPbkmdwNECDwBnh: @escaping (_ mKUIzAxlvBGUVfVk: Bool, _ room: YIMRoom?) throws -> Void
    ) {
        if !fZwNztHkPUvazdeo.kKZHQgqVvWvEzcze.CJpHDPXJovTfKuUn() {
            NbDnvbpESqnqDInl.zYOvKsmnWpOUpLXr.CzkztFjgxzeSorYu {
                try? lnPbkmdwNECDwBnh(false, nil)
            }
            return
        }
        NbDnvbpESqnqDInl.ZSgCfzHnxpKhZfxO.etDatGyKwukGrbHv(kEZOdhLcNmJFYywX: "queryRoomInfo", EeqbYNIBaZfkqYaF: [
            "roomID" : tErCIvYmyunOPvLc,
        ]) { mKUIzAxlvBGUVfVk, EyTIVrNCTVqmYwPu, VnJfdRrzZmdnJmsc, EmqetgaKELbCTYMP in
            if !mKUIzAxlvBGUVfVk {
                NbDnvbpESqnqDInl.zYOvKsmnWpOUpLXr.CzkztFjgxzeSorYu {
                    try? lnPbkmdwNECDwBnh(false, nil)
                }
                return
            }
            NbDnvbpESqnqDInl.zYOvKsmnWpOUpLXr.CzkztFjgxzeSorYu {
                try? lnPbkmdwNECDwBnh(true, NbDnvbpESqnqDInl.zYOvKsmnWpOUpLXr.IYMCIgmwfHIBQjIX(EyTIVrNCTVqmYwPu!["room"], YIMRoom.self))
            }
        }
    }
}
